// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from "./router"
import App from './App'
import store from "./store"
import VueLazyload from 'vue-lazyload';
import localStore from "./localstore"
import VueClipboard from 'vue-clipboard2'
import  { AlertPlugin } from 'vux'
import $ from "jquery";
import Store from "store2"
let Region = JSON.parse(Store.get("region")) || {region_id:0,parent_id:1,region_name:'全国'};

//
window.$ = window.jQuery = $
//设置全局拦截
$.ajaxSetup({
  beforeSend:function (XHR) {
    XHR.setRequestHeader("Area",Region.region_id)
  },
});
Vue.use(AlertPlugin);
Vue.use(VueLazyload);
Vue.use(localStore);
Vue.use(VueClipboard);
Vue.config.productionTip = false;
/* eslint-disable no-new */
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app-box');
